<?php /* Smarty version Smarty 3.1.4, created on 2012-06-12 00:27:45
         compiled from "D:/Programme/Xampp/htdocs/BuildBase/templates\include_custom.tpl" */ ?>
<?php /*%%SmartyHeaderCode:3034fd670e148cde7-01284512%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '26dfbb70c698046300c5e92c5dfebfc2022f4023' => 
    array (
      0 => 'D:/Programme/Xampp/htdocs/BuildBase/templates\\include_custom.tpl',
      1 => 1326654738,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3034fd670e148cde7-01284512',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty 3.1.4',
  'unifunc' => 'content_4fd670e14ca3e',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd670e14ca3e')) {function content_4fd670e14ca3e($_smarty_tpl) {?>
<script>
function include_once_javascript(fileUrl) {
    if (typeof(alreadyIncluded) == "undefined" ){  
        alreadyIncluded = [];
    }
    var found = false;
    for (i = 0; i < alreadyIncluded.length; i++){//alert(i);
        if (alreadyIncluded[i] ==  fileUrl){
            found = true;
            break;
        }          
    }
    if (found == true){//alert(found);
        return true;           
    }
    else {
        var script = document.createElement("script");
        var head   = document.getElementsByTagName('head').item(0);
        root = document.URL.replace(/index.php/g, '');
        script.src = root + 'js/' + fileUrl + '.js';
        head.appendChild(script);
        alreadyIncluded[alreadyIncluded.length] = fileUrl; //alert ('included');
        return true;
    }
}
</script>

<?php }} ?>